

https://leetcode.cn/problems/shu-zu-zhong-shu-zi-chu-xian-de-ci-shu-ii-lcof/description/?envType=list&envId=8peMBu0O
//class Solution {
//public:
//    int trainingPlan(vector<int>& actions) {
//
//        int ret = 0;
//        for (int i = 0, sub = 0; i < 32; i++, sub = 0) {
//            for (auto& x : actions) {
//                sub += ((x >> i) & 1);
//            }
//            if (sub % 3) {
//                ret |= (1 << i);
//            }
//        }
//        return ret;
//    }
//};

https://leetcode.cn/problems/er-jin-zhi-zhong-1de-ge-shu-lcof/?envType=list&envId=8peMBu0O
//class Solution {
//public:
//    int hammingWeight(uint32_t n) {
//
//        int sum = 0;
//        while (n) {
//            sum++;
//            n &= (n - 1);
//        }
//        return sum;
//    }
//};


https://leetcode.cn/problems/bu-yong-jia-jian-cheng-chu-zuo-jia-fa-lcof/description/?envType=list&envId=8peMBu0O
//class Solution {
//public:
//    int encryptionCalculate(int dataA, int dataB) {
//
//        while (dataB) {
//            int c = (unsigned int)(dataA & dataB) << 1;
//            dataA ^= dataB;
//            dataB = c;
//        }
//        return dataA;
//    }
//};

